home *** CD-ROM | disk | FTP | other *** search
/ Everything For A Hacker / 19990506-[HACK].iso / ANTIVIR / nav / NAVDOSWN / INSTALL.INF < prev    next >
INI File  |  1998-05-21  |  18KB  |  630 lines

  1.  
  2. ;**************************************************************************
  3. ;* Norton AntiVirus 4.0 Install Script                                    *
  4. ;**************************************************************************
  5.  
  6. [InstallVersion]
  7. 4.0
  8.  
  9. [WindowsVersion]
  10. 3.10
  11. "The Norton AntiVirus Install"
  12. "requires Microsoft Windows version 3.1"
  13. "or greater."
  14.  
  15. [Process]
  16. AllowIntlChars()
  17.  
  18. SetActiveCopy(CopyNav, install.inf)
  19.  
  20. EnableTestPaths()
  21.  
  22. DisableHelp()
  23.  
  24. Backup(CopyInstallStuff1)
  25.  
  26.  
  27. CallProc(SIWLoadSIWCustDLL)
  28.  
  29. CallProc(WaitLoading)
  30.  
  31. Backup(CopyInstallStuff2)
  32.  
  33. CallProc(RemoveWaitLoading)
  34.  
  35. CallProc(SIWFreeSIWCustDLL)
  36.  
  37.  
  38. ; Is the user registered with a previous version?  If we do not find
  39. ; registration information, then prompt him for it.
  40. switch15 = IsRegistered()
  41. #ifnot (switch15)
  42.    Registration()
  43. #endif
  44.  
  45. ; Check to see if we are the current Windows Shell.
  46. switch60 = IsInstallShell()
  47.  
  48. :ConfigSel
  49.  
  50. ResetTarget(InitTarget)
  51.  
  52. ; He wants to choose where to install the NAVW program.
  53. switch55 = PathBrowse(BrowseNAVW)
  54.  
  55. #ifnot (switch55)
  56.    MessageBox(ByeCancelInstall)
  57.     Delete(DelLeftovers)
  58.     Delete(DelSiwcust)
  59.    Exit()
  60. #endif
  61.  
  62. CallProc(SIWTargetToFull)
  63.  
  64. switch65 = CheckDiskSpace(TARGET)
  65.  
  66. #ifnot (switch65)
  67.    DiskSpaceError(NoSpace)
  68. ;  switch 95 is the first radio button ('change drive'). Where are the docs?
  69.    #if (switch95)
  70.         goto(ConfigSel)
  71.    #endif
  72. #endif
  73.  
  74. switch68 = CallProcEx(SIWIsNavDir)
  75.  
  76. #if (switch68)
  77.    switch68 = MessageYesNo(MessageOverwriteOldNAV)
  78.    #ifnot (switch68)
  79.        goto(ConfigSel)
  80.    #endif
  81. #endif
  82.  
  83. ; Scan for Viruses
  84. CallProc(dovirus)
  85.  
  86. CreateDirectory(CreateDirNAVW)
  87.  
  88. ResetTarget(SetupLocation)
  89.  
  90. CallProc(SetSystemTarget)
  91.  
  92. ; Copy items to where they need to go.
  93. Copy()
  94.  
  95. ; Set the user's registration information
  96. CallProc(SIWSetRegInfo)
  97.  
  98. ; Set the path for Windows Applications in case Windows is in
  99. ; shared (network) directory.
  100. CallProc(SIWGetWindowsAppPath)
  101.  
  102. ; Set up Groups in Windows Shell Program
  103. Groups()
  104.  
  105. MessageBox(ByeNoReboot)
  106.  
  107. ; Delete our temp setup files.
  108. Delete(DelLeftovers)
  109.  
  110. ; Exit the install program based on if we are the shell or not.
  111. #if (switch60)
  112.   End(ByeShell)
  113. #else
  114.   Exit()
  115. #endif
  116.  
  117.  
  118. ;**************************************************************************
  119. ;* Set Shell section                                                      *
  120. ;**************************************************************************
  121.  
  122. [SetShell]
  123. ;AppIniName      = nav.ini
  124. WinIniName      = win.ini
  125. SystemIniName   = system.ini
  126. Message         = MessageBox.SetShellMessage
  127. SysSectionName  = boot
  128. WinSectionName  = windows
  129. shell           = %s\setup.exe
  130. load            =
  131. run             =
  132. SetShellIfLoaded=
  133. Backup          = Backup.SetShellSave
  134. Restore         = Backup.SetShellRestore
  135. Active          = No
  136. IfActiveList    =
  137. SubProcess      =
  138.  
  139. [SetShellSave]
  140. win.ini,    win.$nn,    WINDOWS
  141. system.ini, system.$nn, WINDOWS
  142.  
  143. [SetShellRestore]
  144. system.$nn, system.ini, WINDOWS
  145. win.$nn,    win.ini,    WINDOWS
  146.  
  147. [SetShellMessage]
  148. caption = "Norton AntiVirus -- Install"
  149. "Welcome to the Norton AntiVirus"
  150. "install program.  Please press OK to allow"
  151. "Install to restart Windows and continue the"
  152. "installation.  Press Cancel to exit."
  153.  
  154.  
  155. ;**************************************************************************
  156. ;* Install setup stuff.                                                   *
  157. ;**************************************************************************
  158.  
  159. [CopyInstallStuff1]
  160. siwadvo.dll,  siwadvo.dll,  SOURCE, WINDOWS
  161. siwcust.dll,  siwcust.dll,  SOURCE, WINDOWS
  162. siwgt16.dll,  siwgt16.dll,  SOURCE, WINDOWS
  163. siwgt32.dll,  siwgt32.dll,  SOURCE, WINDOWS
  164.  
  165. [CopyInstallStuff2]
  166. q_sinst.dll, q_sinst.dll, SOURCE, WINDOWS
  167. q_virscn.dll,  q_virscn.dll,  SOURCE, WINDOWS
  168. virscan.dat,  virscan.dat,  SOURCE, WINDOWS
  169. virscan2.dat,  virscan2.dat,  SOURCE, WINDOWS
  170. virscan.inf,  virscan.inf,  SOURCE, WINDOWS
  171. siwvscan.dll, siwvscan.dll, SOURCE, WINDOWS
  172. q_krnl.dll, q_krnl.dll, SOURCE, WINDOWS
  173. q_gui.dll, q_gui.dll, SOURCE, WINDOWS
  174. q_util.dll, q_util.dll, SOURCE, WINDOWS
  175. navex16.dll, navex16.dll, SOURCE, WINDOWS
  176.  
  177.  
  178. ;**************************************************************************
  179. ;* Copy                                                                   *
  180. ;**************************************************************************
  181.  
  182. [CopyNav]
  183. ;seltype.component, description,                                size,req,files,show
  184. CopyMain.BaseFiles, "Norton AntiVirus",          0,   Y,  N,    N
  185.  
  186. [CopyNav:CopyDialog]
  187. caption = "Copying Files..."
  188. posx = -10
  189. posy = -10
  190.  
  191. [CopyNav:Advo]
  192. x-position = 5
  193. y-position = 5
  194. location   = siwadvo.dll
  195. count      = 3
  196.  
  197. [AdvoDefault]
  198. posx = 20
  199. posy = 80
  200. text = AdvoText
  201.  
  202. [AdvoText]
  203. "Be sure to fill out your registration"
  204. "card.  This will allow Symantec to contact"
  205. "you about future product updates."
  206.  
  207. ;**************************************************************************
  208. ;* Not enough disk space                                                  *
  209. ;**************************************************************************
  210.  
  211. [NoSpace]
  212. caption = "Insufficient Disk Space"
  213. radio1 = "Change &Drive"
  214. radio2 = "&Continue Installation"
  215. descrip1 = "Choose this option to change the installation drive to another drive with more space available."
  216. descrip2 = "This option may result in an incomplete installation.  We recommend that you choose the other option or exit the install and delete files."
  217. AllowContinue = 0
  218.  
  219.  
  220. ;**************************************************************************
  221. ;* Groups                                                                 *
  222. ;**************************************************************************
  223.  
  224. [Groups]
  225. "Norton AntiVirus",             nav40.grp
  226.  
  227. [Norton AntiVirus]
  228. "NAV Network Manager",           navnetw.exe,   BaseFiles, ,TARGET
  229. "View Readme",   notepad.exe,   BaseFiles, ,TARGET1, , TARGET, "readme10.txt", TARGET
  230.  
  231.  
  232. ;**************************************************************************
  233. ;* Dialogs/Message box text                                               *
  234. ;**************************************************************************
  235.  
  236. [ByeNoReboot]
  237. caption = "Norton AntiVirus -- Install Complete"
  238. ""
  239. "This concludes the installation of Norton "
  240. "AntiVirus. Please click on the 'View Readme'"
  241. "icon to review the README10.TXT file for "
  242. "late-breaking news and usage tips."
  243.  
  244. [ByeShell]
  245. caption = "Norton AntiVirus -- Install Complete"
  246. ""
  247. "This concludes the installation of "
  248. "Norton AntiVirus. Please review the"
  249. "README10.TXT file for last minute updates "
  250. "to the documentation."
  251. ""
  252. "In order to reset the Windows environment, Install will now close"
  253. "Windows."
  254.  
  255. [ByeCancelInstall]
  256. caption = "Norton AntiVirus"
  257. "You have cancelled the installation"
  258. "of Norton AntiVirus."
  259.  
  260. [ByeNoSel]
  261. caption = "Norton AntiVirus"
  262. ""
  263. ""
  264. "Because no items were selected for"
  265. "installation, this may be an incomplete"
  266. "install of Norton AntiVirus"
  267.  
  268. [ExitMessage]
  269. caption = "Norton AntiVirus"
  270. "Because no items were selected for"
  271. "installation, this may be an incomplete"
  272. "install of Norton AntiVirus"
  273. ""
  274. "Press OK to return to your Windows session."
  275.  
  276. [Errors]
  277. noprev  =  "Symantec Install for Windows is already running!"
  278.  
  279. [FileCopy]
  280. copycaption   =  "Norton AntiVirus -- Install"
  281. errorcaption  =  "Error Copying Files"
  282. insertcaption =  "Insert Diskette"
  283. Message    = MessageText
  284.  
  285. [Cancel]
  286. caption = "Norton AntiVirus -- Install"
  287. text   = "Are you sure you want to exit?"
  288.  
  289. [CancelShell]
  290. caption = "Norton AntiVirus -- Install"
  291. text = "When you cancel Install, Windows will exit so that we can reset the Windows environment."
  292.        "Are you sure you want to exit?"
  293.  
  294. ;**************************************************************************
  295. ;* This message is for when we detect NAV3 in the user's path.            *
  296. ;**************************************************************************
  297. [MessageNav3Running]
  298. caption = "Norton AntiVirus Already Running"
  299. "An application of Norton AntiVirus is currently running on your computer. "
  300. ""
  301. "Please press Alt-Tab to move to the application and close it. Then, using Alt-Tab again, come back to this screen and click OK."
  302.  
  303. ;**************************************************************************
  304. ;* This message is for when a User is trying to install to 95/NT          *
  305. ;**************************************************************************
  306. [MessageUse32Bit]
  307. caption = "Incompatible Windows Version"
  308. "This version of the Norton AntiVirus is for use with Windows 3.1"
  309. ""
  310. "Please install the 32-bit version of the scanner for this version of Windows."
  311.  
  312. ;**************************************************************************
  313. ;* This message is for when we can't locate the NETSCAPE.INI file         *
  314. ;**************************************************************************
  315. [MessageNoNetscapeIni]
  316. caption = "Updating NETSCAPE.INI"
  317. "The install program cannot find the NETSCAPE.INI file."
  318. ""
  319. "Norton AntiVirus cannot be used as a Netscape"
  320. "helper application unless the NETSCAPE.INI file is modified. If you want to install Norton AntiVirus Scanner as a Netscape helper application, reinstall Netscape, then install Norton AntiVirus again."
  321.  
  322.  
  323. ;**************************************************************************
  324. ;* This message is for when the user tries to overwrite NAV               *
  325. ;**************************************************************************
  326. [MessageOverwriteOldNAV]
  327. caption = "Overwrite Norton AntiVirus"
  328. "An earlier version of the Norton AntiVirus is installed in the directory you specified."
  329. ""
  330. "Do you want to install Norton AntiVirus 4.0 over this prior version?"
  331.  
  332. ;**************************************************************************
  333. ;* This message asks the user if we should update their Browser .INI file *
  334. ;**************************************************************************
  335. [MessageUpdateIni]
  336. caption = "Web Browser Helper Application Installation"
  337. "Click Yes to install Norton AntiVirus as a Netscape and Internet Explorer helper application."
  338. ""
  339. "Norton AntiVirus as a helper application automatically checks downloaded files for viruses before you save them to your local disk."
  340. ""
  341. "If you do not want to install Norton AntiVirus as a helper application, click No."
  342. ""
  343. "NOTE:  Whether or not you install Norton AntiVirus as a helper application, you can always use Norton AntiVirus to scan any file for viruses."
  344.  
  345. ; ********************************************************************
  346. ; Config.sys modifications
  347. ; ********************************************************************
  348.  
  349. [ModifyConfigSys]
  350. caption    = "Norton AntiVirus 4.0 -- Modify CONFIG.SYS File"
  351. text1      = "The following changes need to be made to your CONFIG.SYS file:"
  352. FileType   = text
  353. Rem1       = "REM "
  354. FindRems   = 0
  355. EditCaption= "Edit CONFIG.SYS"
  356. EditError1 = "A problem was encountered preparing the new config.sys"
  357. EditError2 = " "
  358. EditError3 = "You should:"
  359. EditError4 = "1. Review the lines that need to be added"
  360. EditError5 = "2. Select the 'Save the required changes to new file's option"
  361. EditError6 = "3. Continue and complete the Install Process"
  362. EditError7 = "4. Make the changes to the config.sys file later"
  363. RemItems   = ConfigRemItems
  364. DelItems   = ConfigDelItems
  365. AddItems   = ConfigAddItems
  366.  
  367. [ConfigRemItems]
  368. *cloaking.exe*
  369. *nav_.sys*
  370. *nav&.sys*
  371.  
  372. [ConfigDelItems]
  373.  
  374. [ConfigAddItems]
  375. "rem The following line is required by the Norton AntiVirus DOS TSR"
  376. "device=%s\cloaking.exe",                           TARGET,PutMeAfterThis = NavAfterThis
  377. "device=%s\navtsr.exe",                             TARGET,PutMeAfterThis = NavAfterThis
  378.  
  379. [NavAfterThis]
  380. *emm386*
  381. *cloaking*
  382. *qemm*
  383. *himem*
  384. *rm386*
  385.  
  386. ; ********************************************************************
  387. ; Autoexec.bat modifications
  388. ; ********************************************************************
  389.  
  390. [ModifyAutoexec]
  391. caption    = "Norton AntiVirus 4.0 -- Modify AUTOEXEC.BAT File"
  392. text1      = "The following changes need to be made to your AUTOEXEC.BAT file:"
  393. FileType   = text
  394. Rem1       = "REM "
  395. FindRems   = 0
  396. EditCaption= "Edit AUTOEXEC.BAT"
  397. EditError1 = "A problem was encountered preparing the new autoexec.bat file"
  398. EditError2 = " "
  399. EditError3 = "You should:"
  400. EditError4 = "1. Review the lines that need to be added"
  401. EditError5 = "2. Select the 'Save the required changes to new file's option"
  402. EditError6 = "3. Continue and complete the Install Process"
  403. EditError7 = "4. Make the changes to the autoexec.bat file later"
  404. RemItems   = AutoexecRemItems
  405. DelItems   = AutoexecDelItems
  406. AddItems   = AutoexecAddItems
  407.  
  408. [AutoexecRemItems]
  409. *navtsr*
  410.  
  411. [AutoexecDelItems]
  412.  
  413. [AutoexecAddItems]
  414. ; "path=%path%;%s",                               TARGET, APPEND
  415.  
  416. ;**************************************************************************
  417. ;* Misc install information                                               *
  418. ;**************************************************************************
  419.  
  420. [DelLeftovers]
  421. siwadvo.dll,  WINDOWS
  422. siwcust.dll,  WINDOWS
  423. q_sinst.dll, WINDOWS
  424. q_virscn.dll, WINDOWS
  425. virscan2.dat, WINDOWS
  426. virscan.dat, WINDOWS
  427. virscan.inf, WINDOWS
  428. siwvscan.dll, WINDOWS
  429. q_krnl.dll,  WINDOWS
  430. q_gui.dll,  WINDOWS
  431. q_util.dll, WINDOWS
  432. navex16.dll, WINDOWS
  433. inscanm.dat, WINDOWS
  434. inscanb.dat, WINDOWS
  435. inscanf.dat, WINDOWS
  436. siwgt16.dll, WINDOWS
  437. siwgt32.dll, WINDOWS
  438.  
  439.  
  440. [UpdBrowserInfo]
  441. IniName=win.ini
  442. SectionName=NAV16
  443. Browser=2
  444.  
  445. [UpdWizardInfo]
  446. IniName=win.ini
  447. SectionName=NAV16
  448. BypassRepairWizard=0
  449.  
  450. ;**************************************************************************
  451. ;* User Registration                                                      *
  452. ;**************************************************************************
  453.  
  454. [Registration]
  455. caption =  "Norton AntiVirus -- Registration"
  456. text1   =  RegText
  457. text2   =  "&Name:"
  458. text3   =  "&Company:"
  459. Cancel  =  "Cancel"
  460. appname =  navopts.dat
  461. string  =  "Symantec Install for Windows"
  462. active  =  no
  463.  
  464. [RegText]
  465. ""
  466. ""
  467. "Please register your name and company before continuing:"
  468.  
  469. [RegNAVW]
  470. NAVW.EXE, TARGET
  471.  
  472. ;**************************************************************************
  473. ;* Target Selection Stuff                                                 *
  474. ;**************************************************************************
  475.  
  476. [InitTarget]
  477. location    = C:\NAVNET
  478. defaultdir  = C:\NAVNET
  479.  
  480. [SetupLocation]
  481. location = %s, TARGET
  482.  
  483. [BrowseNAVW]
  484. caption         = "Select Directory for Norton AntiVirus"
  485. reset           = TARGET
  486.  
  487. [CreateDirNAVW]
  488. %s,TARGET
  489.  
  490. [SIWModifyNetscapeIni]
  491. dll = siwcust.dll
  492. function = SIWModifyNetscapeIni
  493.  
  494. [SIWModifyIExploreIni]
  495. dll = siwcust.dll
  496. function = SIWModifyIExploreIni
  497.  
  498. [SIWGetExtensions]
  499. dll = siwcust.dll
  500. function = SIWGetExtensions
  501.  
  502. [SIWIsNavDir]
  503. dll = siwcust.dll
  504. function = SIWIsNavDir
  505.  
  506. [SIWTargetToFull]
  507. dll = siwcust.dll
  508. function = SIWTargetToFull
  509.  
  510. [SIWSetRegInfo]
  511. dll = siwcust.dll
  512. function = SIWSetRegInfo
  513.  
  514. [SIWModifyLiveUpdateIni]
  515. dll = siwcust.dll
  516. function = SIWModifyLiveUpdateIni
  517.  
  518. [IncreaseLiveUpdateCount]
  519. dll = siwcust.dll
  520. function =IncreaseLiveUpdateCount
  521.  
  522. [DecreaseLiveUpdateCount]
  523. dll = siwcust.dll
  524. function =DecreaseLiveUpdateCount
  525.  
  526. [SIWIsNav3Installed]
  527. dll = siwcust.dll
  528. function = SIWIsNav3Installed
  529.  
  530. [SIWIsNav3Running]
  531. dll = siwcust.dll
  532. function = SIWIsNav3Running
  533.  
  534. [SIWIsWin32]
  535. dll = siwcust.dll
  536. function = SIWIsWin32
  537.  
  538. [SetSystemTarget]
  539. dll = siwcust.dll
  540. function = SIWSetSystemTarget
  541.  
  542. [SpawnNotepad]
  543. dll = siwcust.dll
  544. function = SIWDisplayReadme
  545.  
  546. [LaunchRescue]
  547. dll = siwcust.dll
  548. function = SIWLaunchRescue
  549.  
  550. [SIWGetNavPath]
  551. dll = siwcust.dll
  552. function = SIWGetNavPath
  553.  
  554. [HandleSYMEvnt]
  555. dll = siwcust.dll
  556. function = HandleSYMEvnt
  557.  
  558. [WaitLoading]
  559. dll = siwcust.dll
  560. function = WaitLoading
  561.  
  562. [RemoveWaitLoading]
  563. dll = siwcust.dll
  564. function = RemoveWaitLoading
  565.  
  566. [SIWLoadSIWCustDLL]
  567. dll = siwcust.dll
  568. function = SIWLoadSIWCustDLL
  569.  
  570. [SIWFreeSIWCustDLL]
  571. dll = siwcust.dll
  572. function = SIWFreeSIWCustDLL
  573.  
  574.  
  575. [SYMEVENT]
  576. IniName = system.ini
  577. SectionName = 386Enh
  578. device = "symevnt.386        ; Added by Norton AntiVirus 4.0 (may be used by other programs)"
  579.  
  580. [AutoProtect]
  581. IniName = win.ini
  582. SectionName = windows
  583. load = %s\navtsrw.exe, TARGET, insert
  584.  
  585. [DelOldSymevent]
  586. IniName = system.ini
  587. SectionName = 386Enh
  588. device = *symevnt.386*
  589.  
  590. ; The items below are for Virus Scanning during Install
  591.  
  592.                     ; This section is for the 'delete' command.  It deletes
  593.                     ; the files from the WINDOWS directory when the scan
  594.                     ; is done
  595. [delvirus]
  596. q_sinst.dll, WINDOWS
  597. q_virscn.dll, WINDOWS
  598. virscan.dat, WINDOWS
  599. virscan.inf, WINDOWS
  600. siwvscan.dll, WINDOWS
  601.  
  602.  
  603.                     ; This is the section referenced by the CallProc command.
  604.                     ; It tells the dll and function to call for the scan.
  605. [dovirus]
  606. dll = siwvscan.dll
  607. function = ScanForViruses
  608.  
  609.                     ; This section is used by the dll itself to get info
  610.                     ; about what type of scan to do, etc...
  611. [VirusScan]
  612. dllname = q_sinst.dll
  613. caption = "Virus Scan"
  614. scanboot = no
  615. scanmem = yes
  616. scanfloppy = no
  617. scanfixed = no
  618. abortiffound = yes
  619. recommendtext = VirusFoundText  ; See next section
  620.  
  621. [VirusFoundText]
  622. "A virus was found on your system."
  623. "We recommend that you run NAV.EXE"
  624. "from the emergency disk before"
  625. "proceeding with install.  Please"
  626. "see the readme10.txt file for more"
  627. "information."
  628.  
  629.  
  630.